home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / c / library / mslang / vcslid / msfc / slidevw.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-09-03  |  1.9 KB  |  68 lines

  1. // slidevw.h : interface of the CSlidetstView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class CSlidetstView : public CView
  6. protected:
  7.     CSlider *pVSlider;
  8.     CSlider *pHSlider;
  9.     CEdit   vposWin;
  10.     CEdit   hposWin;
  11.     
  12. protected: // create from serialization only
  13.     CSlidetstView();
  14.     DECLARE_DYNCREATE(CSlidetstView)
  15.  
  16. // Attributes
  17. public:
  18.     CSlidetstDoc* GetDocument();
  19.  
  20. // Operations
  21. public:
  22.  
  23. // Implementation
  24. public:
  25.     virtual ~CSlidetstView();
  26.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  27.     
  28. #ifdef _DEBUG
  29.     virtual void AssertValid() const;
  30.     virtual void Dump(CDumpContext& dc) const;
  31. #endif
  32.  
  33.     // Printing support
  34. protected:
  35.     virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  36.     virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  37.     virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  38.  
  39. // Generated message map functions
  40. protected:
  41.     //{{AFX_MSG(CSlidetstView)
  42.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  43.     afx_msg void OnDestroy();
  44.     afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScollBar);
  45.     afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
  46.     afx_msg HBRUSH OnCtlColor(CDC*, CWnd*, UINT);
  47.     afx_msg void OnSethpos();
  48.     afx_msg void OnSethrange();
  49.     afx_msg void OnSetvpos();
  50.     afx_msg void OnSetvrange();
  51.     afx_msg void OnEnablevert();
  52.     afx_msg void OnEnablehorz();
  53.     afx_msg void OnDisablevert();
  54.     afx_msg void OnDisablehorz();
  55.     afx_msg void OnGethrange();
  56.     afx_msg void OnGetvrange();
  57.     //}}AFX_MSG
  58.     DECLARE_MESSAGE_MAP()
  59. };
  60.  
  61. #ifndef _DEBUG  // debug version in slidevw.cpp
  62. inline CSlidetstDoc* CSlidetstView::GetDocument()
  63.    { return (CSlidetstDoc*) m_pDocument; }
  64. #endif
  65.  
  66. /////////////////////////////////////////////////////////////////////////////
  67.